package com.example.trans;

import com.example.Employee;


public class ChangeNameTransaction extends  ChangeEmployeeTransaction {

    private String newName;

    public ChangeNameTransaction(int empId, String newName) {
        super(empId);
        this.newName =  newName;
    }
    @Override
    protected  void doChange(Employee e) {
        e.setName(newName);
    }

}
